﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBA.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DBA.Common.Test
{
    [OrmPropertyAttribute(TableName = "MyTest", PrimaryKey = "PK_ID", PrimaryKeyType = "IDENTITY")]
    public class TestOne
    {

        private string _GroupGuid;
        [OrmPropertyAttribute(ParameterLength = 32, ParameterType = "uniqueidentifier", IsNull="1")]
        public string GroupGuid
        {
            get { return _GroupGuid; }
            set { _GroupGuid = value; }
        }
        private string _UserGuid;

        [OrmPropertyAttribute(ParameterLength = 100, ParameterType = "char", IsNull = "1")]
        public string UserGuid
        {
            get { return _UserGuid; }
            set { _UserGuid = value; }
        }
        private string _RoleGuid;

        [OrmPropertyAttribute(ParameterLength = 200, ParameterType = "char", IsNull = "1")]
        public string RoleGuid
        {
            get { return _RoleGuid; }
            set { _RoleGuid = value; }
        }
    }
    
    public class Test
    {

        public Test()
        {
        }

        public Test(string name)
        {
        }


        public string Name { get; set; }


        public string Age;

        [Description("方法1")]
        public void GetString()
        {
        }

        [Description("方法2")]
        public void GetString(string name)
        {
        }


        public string file = "";


        public delegate void MyDelegate();

        public event MyDelegate MyEvent;

    }

    public enum 付款方式
    {

        信用卡,
        現金
    }
}
